Filter hook 'customize_sanitize_js_{$this->id}'

in WP Core File wp-includes/class-wp-customize-setting.php at line 802

Description

Filters a Customize setting value for use in JavaScript. The dynamic portion of the hook name, `$this->id`, refers to the setting ID.

Occurrences

Filename Line Number
wp-includes/class-wp-customize-setting.php 802

Parameters

Type Name Description
mixed $value The setting value.
WP_Customize_Setting $setting WP_Customize_Setting instance.

PHP Doc

/**
		 * Filters a Customize setting value for use in JavaScript.
		 *
		 * The dynamic portion of the hook name, `$this->id`, refers to the setting ID.
		 *
		 * @since 3.4.0
		 *
		 * @param mixed                $value   The setting value.
		 * @param WP_Customize_Setting $setting WP_Customize_Setting instance.
		 */